package com.dy.drp.service;

import com.dy.drp.dto.RolePowerDto;
import com.dy.drp.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dy.drp.util.PageUtil;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dy
 * @since 2022-04-02
 */
public interface IRoleService extends IService<Role> {
    PageUtil<Role> selectOnePageRole(PageUtil<Role> pageUtil);

    boolean insertRole(RolePowerDto rolePowerDto);

    boolean deleteRole(String roleName);

    RolePowerDto selectRolePowerByName(String roleName);

    boolean updateRolePower(RolePowerDto rolePowerDto);
}
